package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.Pointdao;
import com.zr.service.PointService;

import net.sf.json.JSONObject;
@Service("pointservice")
public class PointServiceImpl implements PointService{
	
	@Resource
	private Pointdao pointdao;
	
	@Override
	public JSONObject findAllPoint(int page, int rows) {
		JSONObject j = new JSONObject();
		j.put("total", pointdao.countAllpoint());
		j.put("rows", pointdao.findAllPoint(page, rows));
		return j;
	}
}
